# gdb ../sbin/nginx core
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../sbin/nginx...

warning: Can't open file /dev/zero (deleted) during file-backed mapping note processing
[New LWP 95634]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nginx: worker process                                       '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  ngx_http_core_access_phase (r=0x560e39e40880, ph=0x560e39e541e8) at src/http/ngx_http_core_module.c:1127
1127	                h->hash = 0;
(gdb) backtrace full
#0  ngx_http_core_access_phase (r=0x560e39e40880, ph=0x560e39e541e8) at src/http/ngx_http_core_module.c:1127
        rc = 0
        h = 0x4e13f3427c687526
        clcf = <optimized out>
#1  0x0000560e391ebebc in ngx_http_core_run_phases (r=r@entry=0x560e39e40880) at src/http/ngx_http_core_module.c:875
        rc = <optimized out>
        ph = 0x560e39e54140
        cmcf = <optimized out>
#2  0x0000560e391ebf5f in ngx_http_handler (r=r@entry=0x560e39e40880) at src/http/ngx_http_core_module.c:858
        cmcf = <optimized out>
#3  0x0000560e391f654a in ngx_http_process_request (r=r@entry=0x560e39e40880) at src/http/ngx_http_request.c:2104
        c = 0x560e39e3f920
#4  0x0000560e392254ae in ngx_http_v2_run_request (r=0x560e39e40880) at src/http/v2/ngx_http_v2.c:3982
        fc = 0x560e39e3f920
        h2c = <optimized out>
#5  0x0000560e392255d9 in ngx_http_v2_state_header_complete (h2c=h2c@entry=0x560e39ce72c0, pos=pos@entry=0x560e39ec57e6 "", end=end@entry=0x560e39ec5997 "") at src/http/v2/ngx_http_v2.c:1914
        stream = <optimized out>
#6  0x0000560e39225a3b in ngx_http_v2_state_process_header (h2c=h2c@entry=0x560e39ce72c0, pos=0x560e39ec57e6 "", end=end@entry=0x560e39ec5997 "") at src/http/v2/ngx_http_v2.c:1878
        len = <optimized out>
        rc = <optimized out>
        h = <optimized out>
        fc = 0x560e39e3f920
        hh = <optimized out>
        r = 0x560e39e40880
        header = 0x560e39ce7360
        cscf = <optimized out>
        cmcf = <optimized out>
        cookie = <optimized out>
#7  0x0000560e392260c4 in ngx_http_v2_state_field_huff (h2c=h2c@entry=0x560e39ce72c0, pos=0x560e39ec57e6 "", end=end@entry=0x560e39ec5997 "") at src/http/v2/ngx_http_v2.c:1619
        size = 28
#8  0x0000560e3922631f in ngx_http_v2_state_field_len (h2c=h2c@entry=0x560e39ce72c0, pos=<optimized out>, end=end@entry=0x560e39ec5997 "") at src/http/v2/ngx_http_v2.c:1577
        alloc = <optimized out>
        len = <optimized out>
        huff = 1
        cscf = <optimized out>
#9  0x0000560e3922656b in ngx_http_v2_state_header_block (h2c=0x560e39ce72c0, pos=<optimized out>, end=0x560e39ec5997 "") at src/http/v2/ngx_http_v2.c:1493
        ch = <optimized out>
        value = <optimized out>
        indexed = 0
        size_update = 0
        prefix = <optimized out>
#10 0x0000560e392241c8 in ngx_http_v2_read_handler (rev=rev@entry=0x560e39e95860) at src/http/v2/ngx_http_v2.c:435
        p = 0x560e39ec57c8 "`\234\327\217^\354\033\267d\277\003\335\255\244b\236s\366d\223LYi\242\244\325GA\327\037"
        end = 0x560e39ec5997 ""
        available = <optimized out>
        n = 855
        c = 0x560e39e57be0
        h2mcf = <optimized out>
        h2c = 0x560e39ce72c0
#11 0x0000560e3922479c in ngx_http_v2_idle_handler (rev=0x560e39e95860) at src/http/v2/ngx_http_v2.c:4862
        c = 0x560e39e57be0
        h2scf = <optimized out>
        h2c = 0x560e39ce72c0
        clcf = <optimized out>
#12 0x0000560e391cac7c in ngx_epoll_process_events (cycle=<optimized out>, timer=<optimized out>, flags=1) at src/event/modules/ngx_epoll_module.c:901
        events = 1
        revents = 1
        instance = 0
        i = 0
        level = <optimized out>
        err = <optimized out>
        rev = <optimized out>
        wev = <optimized out>
        queue = <optimized out>
        c = 0x560e39e57be0
#13 0x0000560e391c16e3 in ngx_process_events_and_timers (cycle=cycle@entry=0x560e39d00fb0) at src/event/ngx_event.c:248
        flags = 1
--Type <RET> for more, q to quit, c to continue without paging--c
        timer = 59982
        delta = 5626107826396493094
#14 0x0000560e391c913f in ngx_worker_process_cycle (cycle=0x560e39d00fb0, data=<optimized out>) at src/os/unix/ngx_process_cycle.c:721
        worker = <optimized out>
#15 0x0000560e391c78a4 in ngx_spawn_process (cycle=cycle@entry=0x560e39d00fb0, proc=0x560e391c9059 <ngx_worker_process_cycle>, data=0x3, name=0x560e392714ef "worker process", respawn=respawn@entry=3)
    at src/os/unix/ngx_process.c:199
        on = 1
        pid = 0
        s = <optimized out>
#16 0x0000560e391c9a5a in ngx_reap_children (cycle=0x560e39d00fb0) at src/os/unix/ngx_process_cycle.c:598
        i = <optimized out>
        live = 1
        n = <optimized out>
        ch = {command = 2, pid = 93570, slot = 3, fd = -1}
        ccf = <optimized out>
        i = <optimized out>
        n = <optimized out>
        live = <optimized out>
        ch = <optimized out>
        ccf = <optimized out>
#17 ngx_master_process_cycle (cycle=cycle@entry=0x560e39d00fb0) at src/os/unix/ngx_process_cycle.c:174
        title = <optimized out>
        p = <optimized out>
        size = <optimized out>
        i = <optimized out>
        sigio = 0
        set = {__val = {0 <repeats 13 times>, 6, 0, 94619099467720}}
        itv = {it_interval = {tv_sec = 0, tv_usec = 0}, it_value = {tv_sec = 0, tv_usec = 0}}
        live = <optimized out>
        delay = 0
        ccf = 0x560e39d02f50
#18 0x0000560e391a230e in main (argc=<optimized out>, argv=<optimized out>) at src/core/nginx.c:383
        b = <optimized out>
        log = <optimized out>
        i = <optimized out>
        cycle = 0x560e39d00fb0
        init_cycle = {conf_ctx = 0x0, pool = 0x560e39d002a0, log = 0x560e392bebe0 <ngx_log>, new_log = {log_level = 0, file = 0x0, connection = 0, disk_full_time = 0, handler = 0x0, data = 0x0, writer = 0x0, 
            wdata = 0x0, action = 0x0, next = 0x0}, log_use_stderr = 0, files = 0x0, free_connections = 0x0, free_connection_n = 0, modules = 0x0, modules_n = 0, modules_used = 0, reusable_connections_queue = {
            prev = 0x0, next = 0x0}, reusable_connections_n = 0, connections_reuse_time = 0, listening = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, paths = {elts = 0x0, nelts = 0, size = 0, 
            nalloc = 0, pool = 0x0}, config_dump = {elts = 0x0, nelts = 0, size = 0, nalloc = 0, pool = 0x0}, config_dump_rbtree = {root = 0x0, sentinel = 0x0, insert = 0x0}, config_dump_sentinel = {key = 0, 
            left = 0x0, right = 0x0, parent = 0x0, color = 0 '\000', data = 0 '\000'}, open_files = {last = 0x0, part = {elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, shared_memory = {
            last = 0x0, part = {elts = 0x0, nelts = 0, next = 0x0}, size = 0, nalloc = 0, pool = 0x0}, connection_n = 0, files_n = 0, connections = 0x0, read_events = 0x0, write_events = 0x0, old_cycle = 0x0, 
          conf_file = {len = 32, data = 0x560e39d002f0 "/secure/viewqwest.css"}, conf_param = {len = 29, data = 0x7ffc56ecfee4 ""}, conf_prefix = {len = 22, data = 0x560e39d002f0 "/secure/viewqwest.css"}, prefix = {
            len = 17, data = 0x560e3926d13c "/usr/local/nginx/"}, error_log = {len = 14, data = 0x560e3926d15e "logs/error.log"}, lock_file = {len = 0, data = 0x0}, hostname = {len = 0, data = 0x0}}
        cd = <optimized out>
        ccf = 0x560e39d02f50
(gdb) 